Swift Package Manager resolves the published package from onde-swift and downloads the binary XCFramework asset from GitHub Releases on the main onde repository.
Ship Onde into Apple apps.
The Swift package is distributed from onde-swift, while signed release assets live on onde. Test local XCFramework builds without rewriting the package manifest.
Set ONDE_SWIFT_USE_LOCAL=1 and point .local/OndeFramework.xcframework at a freshly built local XCFramework when testing without publishing a release.
The Swift layer is generated directly with UniFFI from the Rust static library. cargo-swift is no longer part of the release pipeline.
The first public SDK release is chat-focused: OndeChatEngine, model loading, history management, and streaming callbacks.
Install
Add the package in Xcode or in your app Package.swift.
dependencies: [
.package(url: "https://github.com/ondeinference/onde-swift", from: "0.1.0")
]Switching modes
Release stays the default. Local mode is opt-in through an environment variable.
.package(url: "https://github.com/ondeinference/onde-swift", from: "0.1.0")ONDE_SWIFT_USE_LOCAL=1 open -a Xcode /path/to/YourApp.xcodeprojln -s /path/to/OndeFramework.xcframework /path/to/onde-swift/.local/OndeFramework.xcframeworkPlatform matrix
The current package is aimed at iOS and macOS first.